package com.zoffy.wmsbackend.service.impl;

import com.zoffy.wmsbackend.model.echart.StockOutAmountSummaryByWarehouse;
import com.zoffy.wmsbackend.mapper.ChartMapper;
import com.zoffy.wmsbackend.model.echart.StockInSummaryByWarehouse;
import com.zoffy.wmsbackend.model.echart.StockOutSummaryByWarehouse;
import com.zoffy.wmsbackend.model.vo.report.StockDiffQuantity;
import com.zoffy.wmsbackend.service.ChartService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChartServiceImpl implements ChartService {

    @Resource
    private ChartMapper chartMapper;

    @Override
    public List<StockInSummaryByWarehouse> getStockInCountByWarehouse() {
        return chartMapper.getStockInCountByWarehouse();
    }

    @Override
    public List<StockOutSummaryByWarehouse> getStockOutCountByWarehouse() {
        return chartMapper.getStockOutCountByWarehouse();
    }

    @Override
    public List<StockOutAmountSummaryByWarehouse> getStockOutAmountSummaryByWarehouse() {
        return chartMapper.getStockOutAmountSummaryByWarehouse();
    }

    @Override
    public List<StockDiffQuantity> getStockDiffQuantity() {
        return chartMapper.getStockDiffQuantity();
    }
}